package com.itheima.meiju.demo1;

public enum Season{
    SPRING("春"){
        @Override
        public void show() {
            System.out.println(getName());
        }
    },
    SUMMER("夏"){
        @Override
        public void show() {
            System.out.println(getName());
        }
    },
    AUTUMN("秋"){
        @Override
        public void show() {
            System.out.println(getName());
        }
    },
    WINTER("冬"){
        @Override
        public void show() {
            System.out.println(getName());
        }
    };
    private String name;

   private Season(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public abstract void show();
}
